		<table cellpadding="3" cellspacing="1"  id="list-table">
			<tr>
				<#--
				<th>ID</th>
				
				-->
				<th>关联景点</th>
				<th>第几屏</th>
				<th>图片类型</th>
				<th>图片</th>
				<th>添加时间</th>
				<th>操作</th>
			</tr>
<#if (scenicHandPaintingGalleryList?size>0) >
    <#list  scenicHandPaintingGalleryList as scenicHandPaintingGallery>
      <tr>
				<#--	<td valign="top" nowrap="nowrap"> ${(scenicHandPaintingGallery.scenicGalleryId)?c}</td>
				 -->
					<td align="left" valign="top" nowrap="nowrap">
 
					 
					 	 <#if (scenicSpotsModelList?size>0) >
							<#list  scenicSpotsModelList as scenicSpotsModel>
							 
							<#if scenicSpotsModel.scenicId==scenicHandPaintingGallery.relationScenicId >
					
							  ${scenicSpotsModel.scenicName} 
						 
							</#if>
							  
							</#list>
						</#if>
					 
					 
			       </td>
					
					<td>
					 			<#if (scenicHandPaintingGallery.whichScreen)??>
					第${scenicHandPaintingGallery.whichScreen}屏
					 </#if>
					</td>

						
					<td align="center" valign="top">
					  <#if (scenicHandPaintingGallery.imgCategory)??>
					 			
					 			<#if  scenicHandPaintingGallery.imgCategory=='1'>
								路前景
									</#if>
										<#if  scenicHandPaintingGallery.imgCategory=='3'>
								主景近
									</#if>
										<#if  scenicHandPaintingGallery.imgCategory=='4'>
								主景中
									</#if>
										<#if  scenicHandPaintingGallery.imgCategory=='5'>
								主景远
									</#if>
					 </#if>
					</td>

					<td align="center" valign="top"> 
					<#if (scenicHandPaintingGallery.imgOriginal)??>
			 
						<a href="../${scenicHandPaintingGallery.imgOriginal}" > <img src="../${scenicHandPaintingGallery.imgOriginal}" width="25px"></a>
				
					</#if>
					</td>
					<td align="center" valign="top" >
					<#if (scenicHandPaintingGallery.addTime)??>
						${scenicHandPaintingGallery.addTime?string("yyyy-MM-dd HH:mm:ss")}
							</#if>
					</td>
					 
 
					<td   align="center">
				 
						<a href="../product/getScenicHandPaintingGalleryById.action?scenicGalleryId=${scenicHandPaintingGallery.scenicGalleryId}">编辑</a>|
						<a  onclick="{if(confirm('你确定要删除吗？')){return true;}return false;}" href="../product/deleteScenicHandPaintingGalleryById.action?scenicGalleryId=${scenicHandPaintingGallery.scenicGalleryId}">删除</a>

					</td>
				</tr>
    </#list>
</#if>


</table>
 <script type="text/javascript">
     listTable.action = "ajaxQueryHandPaintingList.action";
     listTable.currentPage=${(page.currentPage)?c};
     listTable.pageCount=${(page.totalPage)?c};
     listTable.recordCount=${(page.allRow)?c};
 </script>
<!-- 分页 -->
<table id="page-table" cellspacing="0">
			<tr>
				<td align="right" nowrap="true">
					<div id="turn-page">
					共<span id="totalRecords">${page.allRow} </span>条记录&nbsp; 
					共<span	id="totalPages">${page.totalPage}</span> 页&nbsp;
				当前第<span	id="pageCurrent">${page.currentPage}</span>页&nbsp;  
	     
	     <!--也许可以换种方式，呵呵，不用人工输入，用下拉列表-->
	     每页显示记录条数 <input type='text' size='3' id='pageSize' value="${page.pageSize}" onkeypress="return listTable.changePageSize(event)" />
	   <!--查询动作-->
	    <input type='hidden' size='3' id='action' value="ajaxQueryHandPaintingList.action"/>
	       
							
						<span id="page-link">  
						<a	href="javascript:listTable.gotoPageFirst()">第一页</a> 
						<a	href="javascript:listTable.gotoPagePrev()">前一页</a> 
						<a	href="javascript:listTable.gotoPageNext()">下一页</a> 
						<a	href="javascript:listTable.gotoPageLast()">最后一页</a> 
						<select	id="gotoPage" onchange="listTable.gotoPage(this.value)">
						<#assign x=page.totalPage>
						<#assign y=page.currentPage>
						<#list 1 .. x as i>
						<#if y==i >
						    <option value="${(i)?c}" selected="selected">${(i)?c}</option>
						<#else>
							<option value="${(i)?c}" >${(i)?c}</option>
						</#if>
						</#list>
           </select>
        </span>
        </div>
        </td>
        
    </tr>
</table>
